# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# Any copyright is dedicated to the Public Domain.
# http://creativecommons.org/publicdomain/zero/1.0/


p = add_android_eclipse_library_project('library1')
p.package_name = 'org.mozilla.test.library1'
p.res = 'library1/resources'

p = add_android_eclipse_library_project('library2')
p.package_name = 'org.mozilla.test.library2'

p = add_android_eclipse_project('main1', 'main1/AndroidManifest.xml')
p.package_name = 'org.mozilla.test.main1'
p.recursive_make_targets += ['target1', 'target2']

p = add_android_eclipse_project('main2', 'main2/AndroidManifest.xml')
p.package_name = 'org.mozilla.test.main2'
p.res = 'main2/res'
p.assets = 'main2/assets'
p.extra_jars = ['main2/extra.jar']

p = add_android_eclipse_project('main3', 'main3/AndroidManifest.xml')
p.package_name = 'org.mozilla.test.main3'
cpe = p.add_classpathentry('a', 'main3/a', dstdir='a/a')
cpe = p.add_classpathentry('b', 'main3/b', dstdir='b')
cpe.exclude_patterns += ['b/Excludes.java', 'b/Excludes2.java']
cpe = p.add_classpathentry('c', 'main3/c', dstdir='d/e')
cpe.ignore_warnings = True

p = add_android_eclipse_project('main4', 'main3/AndroidManifest.xml')
p.package_name = 'org.mozilla.test.main3'
p.referenced_projects += ['library1']
p.included_projects += ['library2']
p.recursive_make_targets += ['target3', 'target4']

DIRS += ['subdir']
